package com.design.mode.aop;

import org.springframework.stereotype.Component;

/**
 * @ClassName Boys
 * @Description TODO
 * @Author xiongchao
 * @Date 2020/10/10 14:35
 **/
@Component
public class Boys implements BuyWithParam {
    @Override
    public String buy(double price) {
        System.out.println(String.format("男孩买了一个玩具,花了%s钱",price));
        return "玩具";
    }
}
